package com.hadwinling.blog.service;

import com.hadwinling.blog.entity.Photo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author HadwinLing
 * @version V1.0
 * @Package com.hadwinling.blog.service
 * @date 2020/8/19 7:47
 */
public interface PhotoService {


    int deleteByPrimaryKey(Integer id);

    int insert(Photo record);

    int insertSelective(Photo record);

    Photo selectByPrimaryKey(Integer id);

    List<Photo> selectAllByState(Integer state);

    int updateByPrimaryKeySelective(Photo record);

    int updateByPrimaryKey(Photo record);

    List<Photo> selectAllByAdminid(Integer adminid);

    List<Photo> selectAllByAdminidAndState(Integer adminid,Integer state);

}




